export function usePageHandle(fecthList: () => void, data: any) {
  const search = () => {
    fecthList()
  }
  const initData = data => {
    for (const item in data.value) {
      if (item == "psize") {
        data.value[item] = 10
      } else if (item == "page") {
        data.value[item] = 1
      } else {
        data.value[item] = ""
      }
    }
  }
  // 初始化数据
  const reset = () => {
    initData(data)
    fecthList()
  }
  return [search, reset, initData]
}
